VMX: fix vmx_handle_eoi()
authorJan Beulich <jbeulich@suse.com>
Fri, 1 Feb 2019 10:25:52 +0000 (11:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Feb 2019 10:25:52 +0000 (11:25 +0100)
commitc21aba8b9d5ce5bf55cec5559df763a9b682c032
tree8960c587e25ed979699ae8a1468cd282d4bc1b31
parentdf1debf494ac38c95abb602b2b3057613de06b47
VMX: fix vmx_handle_eoi()

In commit 303066fdb1e ("VMX: fix interaction of APIC-V and Viridian
emulation") I screwed up: Instead of clearing SVI, other ISR bits
should be taken into account.

Introduce a new helper set_svi(), split out of vmx_process_isr(), and
use it also from vmx_handle_eoi().

Following the problems in vmx_intr_assist() (see the still present big
block of debugging code there) also warn (once) if EOI'd vector and
original SVI don't match.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Chao Gao <chao.gao@intel.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 45cb9a4123b5550eb1f84846fe5482acae1c13a3
master date: 2018-11-02 12:15:33 +0100
xen/arch/x86/hvm/vlapic.c
xen/arch/x86/hvm/vmx/vmx.c
xen/include/asm-x86/hvm/hvm.h